.Net Framework > v1.1.4322 > System > Threading > Monitor > TryEnter TryEnter(Object)
TryEnter(Object,Int32)
TryEnter(Object,TimeSpan)


TryEnter(Object)

Category
Method
Description
Attempts to acquire an exclusive lock on the specified object.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

TryEnter(Object,Int32)

Category
Method
Description
Attempts, for the specified number of milliseconds, to acquire an exclusive lock on the specified object.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
millisecondsTimeoutInt32
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

TryEnter(Object,TimeSpan)

Category
Method
Description
Attempts, for the specified amount of time, to acquire an exclusive lock on the specified object.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
timeoutTimeSpan
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database